Skip to content

Conversation

caylazabel
Copy link

No description provided.

@@ -0,0 +1,117 @@
# Created by https://www.gitignore.io/api/node,vim,osx,macos,linux

*node_modules

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work ignoring node modules

gulp.watch(['**/*.js', '!node_modules/**'], ['lint', 'test']);
});

gulp.task('default', ['dev']);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work making your default gulp task run all of your other tasks!


greet.sayHi('gary');
greet.sayBye();
greet.randomGreeting();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work creating a different method for printing the user input out



module.exports = exports = {};
var someName = process.argv[2];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work storing the process.argv argument in a variable to use more easily later.

};

exports.randomGreeting = function(){
console.log(`hi ${someName}!`);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay string interpolation!

});

it('should throw a missing name name error', function(){
var result = greet.sayHi;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job storing the result of the method in a variable to more cleanly test below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants